/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pingouin;

import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.ComponentOrientation;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

/**
 *
 * @author Hippolyte
 */
public class Fenetre extends JFrame {
    
    public PanneauHexa pan;
    public PanneauAccueil panA;
    
     
    

    public Fenetre(main main) {

        this.setTitle("Pingoo");
//                 this.setSize(400, 500);
        this.setLocationRelativeTo(null);
        
        
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
        panA = new PanneauAccueil(main);

        
        pan = new PanneauHexa(700,600, panA);
        
        
        
        // position pouis taille de la fenêtre
        this.setBounds(0, 0, pan.x, pan.y);
        //Définition de sa couleur de fond
        //On prévient notre JFrame que ce sera notre JPanel qui sera son contentPane

//                 this.setLayout(null);
        
        this.addPanAccueil();
        
    }
    
    private void addPanAccueil(){
        
        this.setLayout(new BorderLayout());
        
        this.add(panA, BorderLayout.WEST);
        
        this.add(pan, BorderLayout.CENTER);

        this.setVisible(true);

        
        
    }

    
    
    
}
